package day02;

/**
 * 抽象类只能继承一个父类
 * <day02>
 *
 * @Author Do Forest
 * @Date 2019/2/24 0023 23:17
 * @see
 */
public class SonStudy extends AbstactFartherStudy {

    @Override
    public void sayHello() {
        System.out.println("hello");
    }

    @Override
    void go() {
        System.out.println("goHome");
    }

    @Override
    protected String sayHello(String hello) {
        return "hello";
    }

    public static void main(String[] args) {
        AbstactFartherStudy farther = new SonStudy();
        farther.go();

    }
}
